package com.nbsaas.boot.site.rest.convert;

import com.nbsaas.boot.site.data.entity.FeedBack;
import com.nbsaas.boot.site.api.domain.request.FeedBackRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 请求对象转换成实体对象
*/

public class FeedBackEntityConvert  implements Converter<FeedBack, FeedBackRequest> {

    @Override
    public FeedBack convert(FeedBackRequest source) {
        FeedBack result = new FeedBack();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

